package com.zky.seckillzky.seckill.controller;

import com.zky.common.utils.R;
import com.zky.seckillzky.seckill.entity.UserEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class UserCeController {

    /**
     * qps: 1714  ,测试10000次访问  redis并发单表70000qps
     * @param userEntity
     * @return
     */
    @RequestMapping("/user_info")
    @ResponseBody
    public R list(UserEntity userEntity ) {  //数据来自redis
        System.out.println("**"+userEntity);
        return R.ok().put("success",userEntity);

    }

}
